<?php

Class DB{
	private $con;
		 
	 public function getDbConnection(){
	 	$mysqli = new \mysqli("127.0.0.1","root","", "e-tidning");
		if ($mysqli->connect_errno) {
		    echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
		}
		
		return $mysqli;
	 }
}
